﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="VINList.aspx.cs" Inherits="IHISCETeim.Web.MachineSys.MacModel.VINList" %>


<form id="pagerForm" method="post" action="MacModel/VINList.aspx">
<input type="hidden" name="orderField" value="<%=orderField %>" />
<input type="hidden" name="orderDirection" value="<%=orderDirection %>" />
<input type="hidden" name="pageNum" value="1" />
<input type="hidden" name="numPerPage" value="<%=numPerPage %>" />
</form>
<form id="form1" runat="server" method="post" action="MacModel/VINList.aspx" onsubmit="return navTabSearch(this);">
<div class="pageHeader">
    <div class="searchBar">
        <table class="searchContent">
             <tr>
               <td> 机型：</td>
                 <td>
                      <%=GetMacType("select", "MacType", MacType)%>
                 </td>
                 <td>
                 生产日期： 
                </td>
                <td>                   
                    <input type="text" name="SCDATEFrom"  class="date" value="<%=SCDATEFrom %>" />
                  </td>
                  <td >               
                   到<input type="text" name="SCDATETo"  class="date" value="<%=SCDATETo %>" />
                </td>
                <td>
              
                   
                </td>
             </tr>

            <tr>
                 <td>
                    机号： 
                </td>
                <td>
                    <input name="SerialNumber" type="text" value="<%=SerialNumber %>"   />
                </td>               
                <td>
                 生成时间： 
                </td>
                <td>                   
                    <input type="text" name="AddDateFrom" class="date" value="<%=AddDateFrom %>" />
                  </td>
                  <td >               
                   到<input type="text" name="AddDateTo"  class="date" value="<%=AddDateTo %>" />
                </td>
                <td>
              
                   
                </td>
                <td>
                    <div class="subBar">
                        <ul>
                            <li>
                                <div class="buttonActive"><div class="buttonContent"><button type="submit">检索</button></div></div>
                            </li>
                        </ul>
                    </div>
                </td>
            </tr>
        </table>
        
    </div>
</div>
<div class="pageContent">
    <div class="panelBar">
        <ul class="toolBar">
            <% if (HasPower(IHISCETeim.Web.Permission.删除))
               {%>
            <li><a class="delete" href="sysAjaxDone.ashx?ajaxmethod=deletevin&id={sid_user}" target="ajaxTodo" title="确定要删除吗?"><span>删除</span></a></li>
           <%} %>
           <% if (HasPower(IHISCETeim.Web.Permission.导出))
                {%>
            <li><a class="icon" href="MacModel/ExportVINList.aspx?orderField=<%=orderField %>&orderDirection=<%=orderDirection %>&SerialNumber=<%=SerialNumber %>&AddDateFrom=<%= Server.UrlEncode( AddDateFrom) %>&AddDateTo=<%=AddDateTo %>&MacType=<%=MacType %>&SCDATEFrom=<%= Server.UrlEncode( SCDATEFrom) %>&SCDATETo=<%=SCDATETo %>" target="_blank" title="确定要导出吗?"><span>导出(上传到环保平台)</span></a></li>
            <li><a class="icon" href="MacModel/ExportVINList.aspx?usertype=1&orderField=<%=orderField %>&orderDirection=<%=orderDirection %>&SerialNumber=<%=SerialNumber %>&AddDateFrom=<%= Server.UrlEncode( AddDateFrom) %>&AddDateTo=<%=AddDateTo %>&MacType=<%=MacType %>&SCDATEFrom=<%= Server.UrlEncode( SCDATEFrom) %>&SCDATETo=<%=SCDATETo %>" target="_blank" title="确定要导出吗?"><span>导出(内部使用带有机号)</span></a></li>
            <%} %>
            <li>
                <a class="icon" href="/vin.aspx" target="_blank"><span>转到客户查询页面</span></a>
            </li>
        </ul>
    </div>
     <asp:repeater id="rpMenu" runat="server">
            <HeaderTemplate>
            <table class="table" width="100%" layouth="137">
            <thead>
                <tr  >   
                    <th style="width:80px;"  <%=GetDataListOrder("MacType") %>>
                        机型
                    </th>  
                    <th style="width:70px;"  <%=GetDataListOrder("SerialNumber") %> >机号</th>
                    <th style="width:100px;" <%=GetDataListOrder("AddDate") %>>生成日期</th>
                    <th style="width:130px;">
                       VIN代码
                    </th>
                    <th style="width:190px;">
                        信息公开编号
                    </th>
                    <th style="width:80px;">
                        生产厂地址
                    </th>
                    <th style="width:100px;">
                        发动机编号
                    </th>
                    <th style="width:100px;" <%=GetDataListOrder("SCCDZ") %>>
                        生产日期
                    </th>
                    <th style="width:90px;" <%=GetDataListOrder("CCDATE") %>>
                        出厂日期
                    </th>
                    <th>企业信息公开网址</th>
                    <th>发动机商标</th>
                     <th>发动机生产厂地址</th>
                </tr>
            </thead>
            <tbody>
            </HeaderTemplate>
            <ItemTemplate>
                <tr target="sid_user" rel="<%# Eval("ID") %>">
                     <td><%# Eval("MacType") %></td>
                     <td><%# Eval("SerialNumber") %></td>
                       <td><%# Eval("AddDate") %></td>
				    <td><%# Eval("VIN") %></td>
				    <td><%# Eval("XXGKH")%></td>
				    <td><%# Eval("SCCDZ")%></td>
				    <td><%# Eval("FDJH")%></td>
				    <td><%# Eval("SCDATE")%></td>
				    <td><%# Eval("CCDATE")%></td>
                    <td><%# Eval("GKWWW")%></td>
                    <td><%# Eval("FDJSB")%></td>
                    <td><%# Eval("FDJSCCDZ")%></td>
			    </tr>
            </ItemTemplate>
            <FooterTemplate>
                </tbody>
             </table>
            </FooterTemplate>
        </asp:repeater>
    <div class="panelBar">
        <div class="pages">
            <span>显示</span>
            <select class="combox" name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value})">
               <%=SetnumPerPage() %>
            </select>
            <span>条，共<%=TotalCount%>条</span>
        </div>
        <div class="pagination" targettype="navTab" totalcount="<%=TotalCount%>" numperpage="<%=numPerPage %>"
            pagenumshown="10" currentpage="<%=pageNum %>">
        </div>
    </div>
</div>
</form>